﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace gvPoco.ChartOptions
{
    /// <summary>
    /// Specifies the cropping range of the horizontal axis.
    /// </summary>
    public class ViewWindow
    {
        /// <summary>
        /// For a continuous axis: The maximum horizontal data value to render. Has an 
        /// effect only if hAxis.viewWindowMode='explicit'. For a discrete axis:
        /// The zero-based row index where the cropping window ends. Data points at this 
        /// index and higher will be cropped out. In conjunction with vAxis.viewWindowMode.min, 
        /// it defines a half-opened range [min, max) that denotes the element indices to display. 
        /// In other words, every index such that min <= index < max will be displayed.
        /// </summary>
        public double max { get; set; }

        /// <summary>
        /// For a continuous axis: The minimum horizontal data value to render. Has an effect only
        /// if hAxis.viewWindowMode='explicit'. For a discrete axis: The zero-based row index where 
        /// the cropping window begins. Data points at indices lower than this will be cropped out. 
        /// In conjunction with vAxis.viewWindowMode.max, it defines a half-opened range [min, max)
        /// that denotes the element indices to display. In other words, every index such that min 
        /// <= index < max will be displayed.
        /// </summary>
        public double min { get; set; }
    }
}
